import { Service } from 'egg';
/* import Client, * as $dysmsapi from '@alicloud/dysmsapi20170525';

import SMSconfig from '../../config/sms'; */

// TODO: 先删除，这个手机的所有验证码，然后再插入新的验证码
class CodeService extends Service {
  static sendMessage() {
    // 创建客户端
    /* const client = new Client(SMSconfig);
    const addSmsSignRequest = new $dysmsapi.AddSmsSignRequest({
      resourceOwnerAccount: 'test',
      resourceOwnerId: 1,
      signName: 'test',
      remark: 'test',
    });
    const response = await client.addSmsSign(addSmsSignRequest); */
    return {
      Message: 'OK',
      RequestId: 'F655A8D5-B967-440B-8683-DAD6FF8DE990',
      Code: 'OK',
      BizId: '900619746936498440^0'
    };
  }
}

module.exports = CodeService;
